 --- building a package with a QI  recipe --- 
------------------------------------------
------------------------------------------

0) The short version, once all is said up:
mkdir ~/Sources/recipes/network/curl
cd ~/Sources/recipes/network/curl
cp ~/Sources/templets/recipe .
vi recipe
qi -b recipe
qi -i /var/cache/qi/packages/i586/network/curl*tlz 

recipe explanation:
http://dragora.org/repo.fsl/doc/trunk/qi/doc/qi.html#Recipes
recipe example
http://git.savannah.nongnu.org/cgit/dragora.git/plain/recipes/networking/curl/recipe
build directory structure:
http://git.savannah.nongnu.org/cgit/dragora.git/tree/recipes

important paths: 
/etc/qirc # qi configuration file
/usr/src/qi/recipes/{archive, build, patches, recipes, sources}
#sources containint the downloaded source tarballs
/var/cache/qi/packages/ # resulting tlz packages
/var/lib/qi/ # saved recipes and info about the installed packages

------------------------------------------
------------------------------------------
1) create a build directory similar to this STRUCTURE 
http://git.savannah.nongnu.org/cgit/dragora.git/tree/recipes

Something like: 
mkdir -p  Sources/recipes
mkdir Sources/recipes/{devel,libs,tools,networking, x-apps}
according to the packages you will build

-----
1b) get a recipe TEMPLET: 
mkdir ~/Sources/templets
wget http://git.savannah.nongnu.org/cgit/dragora.git/plain/recipes/networking/curl/recipe


explanation of a recipe: 
http://dragora.org/repo.fsl/doc/trunk/qi/doc/qi.html#Recipes

More recipe templets and another idea how the build directory may look: 
https://notabug.org/mprodrigues/d3-recipes


------------------------------------------
------------------------------------------
2.a) create RECIPE  file 
mkdir  ~/Sources/recipes/networking/curl
cd ~/Sources/recipes/networking/curl
cp ~/Sources/templets/recipe .
vim recipe # and edit according to the package

might be a good idea to have the source tarball for ./configure and such:
awk -F= '/fetch/ { print $2 }' | xargs wget
You can copy it, so qi won't fetch it again: 
cp *tar.gz /usr/src/qi/sources 

-----
2.b) build with qi 
qi -b recipe

directory for qi build is: 
/usr/share/qi/build 

-----------------------------------------
-----------------------------------------
3.c) INSTALL  the result: 
qi -i /var/cache/qi/packages 

recipes will be saved at:
/var/lib/qi/

3.b) remove packages
qi -d /usr/pkg/*tlz 
